package org.soar;

import android.app.Activity;
import android.content.Context;

import com.google.inject.Singleton;

@Singleton
public class SoarContainer {

	private ActivityContext activityContext = new ActivityContext();

	public ActivityContext getActivityContext() {
		return activityContext;
	}
	
	public void processActivityContext(Activity activity){
		activityContext.setActivity(activity);
		activityContext.setContext(activity.getApplicationContext());
	}
	
	public void processApplicationContext(Context context){
		activityContext.setActivity(null);
		activityContext.setContext(context);
	}

}
